﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.Effects
{
    public class Blinding : GameEffect
    {

        public Blinding()
            : base(false)
        {
            Type = EffectType.Blinded;
        }

        public override void ModifyStats(CharacterClass character)
        {

            character.Stats.RushStat.Modify( - Power);
            base.ModifyStats(character);
        }

        public override void RevertStats(CharacterClass character)
        {
            character.Stats.RushStat.Revert( -  Power);
            base.ModifyStats(character);
        }

        public override GameEffect GetInstance(int power)
        {
            return new Blinding() { Power = power};
        }
    }
}
